home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Georgia Wildfire Prevention
/
Georgia Wildfire Prevention.iso
/
pc
/
media
/
dirs
/
BackUp
/
WhatIsFire.dir
/
00009_Script_fire objects
< prev
next >
Wrap
Text File
|
2002-10-15
|
974b
|
53 lines
property spritenum,mysprite,myid,sequence,state,myrect,current
on new me
mysprite=sprite(spritenum)
sequence=["water","dirt","stir","dirt"]
myrect=mysprite.rect
state=0
current=1
end
on getpropertydescriptionlist me
plist=[#myid:[#comment:"My type",#format:#string,#default:"dirt",#range:["water","dirt","stir"]]]
return plist
end
on mousedown me
if state=0 then state=1
end
on exitframe me
if state=1 then
if the stilldown then
mysprite.loc=the mouseloc
else
mouseup(me)
end if
end if
end
on mouseup me
if mysprite.intersects(sprite(18)) then
if sequence[current]=myid then
sendallsprites(#turn_on,current)
mysprite.loch=(-2000)
state=2
puppetsound 1,"right"
else
mysprite.rect=myrect
state=0
puppetsound 1,"wrong"
end if
else
mysprite.rect=myrect
state=0
end if
end
on turn_on me,x
current=x+1
end